package com.scy.edu.server;

/**
 * @author 司晨雨
 * @date 2020/6/28 22:01
 * @description
 */
public class LagouServlet extends HttpServlet {
    @Override
    public void doGet(Request request, Response response) throws Exception {
        String content = "<h1>lagouServlet GET</h1>";
        response.outPut((HttpProtocolUtil.getHttpHeader200(content.getBytes().length)+content));
    }

    @Override
    public void doPost(Request request, Response response) throws Exception {
        String content = "<h1>lagouServlet POST</h1>";
        response.outPut((HttpProtocolUtil.getHttpHeader200(content.getBytes().length)+content));
    }

    @Override
    public void init() throws Exception {

    }

    @Override
    public void destory() throws Exception {

    }
}
